package com.ouheng.shop.service;

import com.ouheng.shop.domain.ProductRelevanceDO;

import java.util.List;
import java.util.Map;

/**
 * 商品关联表
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-09-03 13:56:35
 */
public interface ProductRelevanceService {
	
	ProductRelevanceDO get(Long id);
	
	List<ProductRelevanceDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ProductRelevanceDO productRelevance);
	
	int update(ProductRelevanceDO productRelevance);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
	
	List<Long> listPPidByProductid(Long productid);
	
	int removeByProductid(Long productid);
}
